﻿<%@ Page Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false" CodeFile="UploadSearch.aspx.vb" Inherits="UploadSearch" Title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript" src="scripts/overlib.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var something = '<%=Session("anchor1")%>';
            window.location.hash = '#' + something;
        });
    </script>
    <asp:Label ID="lblStaffUID" runat="server" Visible="false" />
    <asp:Label ID="lblStaffType" runat="server" Visible="false" />
    <div>
        <h1>Valuation Search</h1>
        <hr />



        <div runat="server" id="divError" class="msg-box-error" visible="false" enableviewstate="false">

            <span class="title">Error</span><br />
            <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
        </div>
        <div runat="server" id="divSuccessful" class="msg-box-success" visible="false" enableviewstate="false">

            <span class="title">Successful</span><br />
            <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />

        </div>

        <p><%--Description of the page--%></p>

        <!--Slide Out Adv Search Here-->
        <asp:Panel ID="pnlFilter" runat="server">


            <table class="SearchFilter" width="100%" border="0" cellspacing="0" cellpadding="0">
                <tbody>
                    <tr>
                        <td width="30">&nbsp;</td>
                        <td width="120">Daerah</td>
                        <td width="250">
                            <asp:TextBox ID="txtDaerah" runat="server" Width="300px" /></td>
                        <td width="30">&nbsp;</td>
                        <td width="120">Mukim/Bandar</td>
                        <td width="250">
                            <asp:TextBox ID="txtMukim" runat="server" Width="300px" />
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>Sek</td>
                        <td>
                            <asp:TextBox ID="txtSek" runat="server" Width="300px" /></td>
                        <td>&nbsp;</td>
                        <td>Jenis Lot/Plot</td>
                        <td>
                            <asp:TextBox ID="txtJenisLot" runat="server" Width="300px" />
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>No Lot/Plot</td>
                        <td>
                            <asp:TextBox ID="txtNoLot" runat="server" Width="300px" /></td>
                        <td>&nbsp;</td>
                        <td>Trkh Penilaian</td>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtTkhPenilaian" runat="server" Width="120px" />
                                        <asp:ImageButton runat="Server" ID="imgToDateCal" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                                        <cc1:CalendarExtender ID="ceToDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtTkhPenilaian" PopupButtonID="imgToDateCal" />
                                    </td>
                                    <td align="center" width="60px">To
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtTkhPenilaian2" runat="server" Width="120px" />
                                        <asp:ImageButton runat="Server" ID="imgToDateCal2" AlternateText="Click to show calendar" ImageUrl="~/images/style01/Btn-calendar.png" />
                                        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtTkhPenilaian2" PopupButtonID="imgToDateCal2" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>Luas Lot</td>
                        <td>
                            <asp:TextBox ID="txtLuasLot" runat="server" Width="300px" /></td>
                        <td>&nbsp;</td>
                        <td>Jenis Hartanah</td>
                        <td>
                            <asp:TextBox ID="txtJenisHartanah" runat="server" Width="300px" />
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>Alamat</td>
                        <td>
                            <asp:TextBox ID="txtAlamat" runat="server" Width="300px" BackColor="#FFFFCC" ToolTip="To search multiple keywords, seperate by &quot;,&quot;" /></td>
                        <td>&nbsp;</td>
                        <td>Kawasan</td>
                        <td>
                            <asp:TextBox ID="txtKawasan" runat="server" Width="300" BackColor="#FFFFCC" ToolTip="To search multiple keywords, seperate by &quot;,&quot;" /></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>Nama Pemberi Pindah Milik</td>
                        <td>
                            <asp:TextBox ID="txtPemberi" runat="server" Width="300px" /></td>
                        <td>&nbsp;</td>
                        <td>Nama Penerima Pindah Milik</td>
                        <td>
                            <asp:TextBox ID="txtPenerima" runat="server" Width="300" /></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td>Balasan</td>
                        <td colspan="4">
                            <asp:TextBox ID="txtBalasanFrom" runat="server" Width="300px" />
                            to
                            <asp:TextBox ID="txtBalasanTo" runat="server" Width="300" /></td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>&nbsp;</td>
                        <td colspan="5" align="right">
                            <div style="border-top: 1px solid #c2c2c2; height: 20px; padding-top: 10px;">
                                <asp:Button ID="btnSearch" runat="server" Text="Search" CssClass="search-btn" Width="80" />
                                <asp:Button ID="btnResetSearchFilter" runat="server" Text="Reset" CssClass="search-btn" Width="60" />
                            </div>
                        </td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                    </tr>
                </tbody>

            </table>

            <br />

            <!--Result Pane Here-->

        </asp:Panel>

        <table class="ResultPanelContainer" border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>

                    <table class="ResultPanelHeader" border="0" width="100%">
                        <tr>
                            <td>
                                <asp:Label ID="lblHeadNoOfItem" runat="server" Text="0" />&nbsp;items total</td>
                            <td align="right">Number of entries per page :
                                <asp:LinkButton ID="lnkHead10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkHead25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkHead100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkHead150Item" runat="server" Text="150" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>

                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="ResultPanelDataDisplay" id="PropertyList">
                        <thead>
                            <tr>
                                <th scope="col" id="first-col"><strong>
                                    <asp:LinkButton ID="lnkDaerah" runat="server" Text="Daerah▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkMukim" runat="server" Text="Mukim/Bandar▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkSek" runat="server" Text="Sek▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkJenisLot" runat="server" Text="Jenis Lot/Plot▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkNoLot" runat="server" Text="No Lot/Plot▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkTkhPenilaian" runat="server" Text="Trkh Penilaian▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkLuasLot" runat="server" Text="Luas Lot▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkJenisHartanah" runat="server" Text="Jenis Hartanah▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkAlamat" runat="server" Text="Alamat▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkKawasan" runat="server" Text="Kawasan▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkPemberi" runat="server" Text="Pemberi▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkPenerima" runat="server" Text="Penerima▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkBalasan" runat="server" Text="Balasan▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                                <th scope="col"><strong>
                                    <asp:LinkButton ID="lnkCreateDate" runat="server" Text="Create Date▲" ForeColor="Black" Style="text-decoration: none" /></strong></th>
                            </tr>
                        </thead>
                        <tbody>
                            <asp:Repeater ID="repUpload" runat="server">
                                <ItemTemplate>
                                    <tr>
                                        <%--edited by minginn @13/4/11 to allow user view the property by clicking the row--%>

                                        <td id="first-col"><a name='<%#Container.dataitem("AucId").tostring %>'></a>
                                            <asp:Label ID="lblRepUpload" runat="server" Text='<%#Container.dataitem("AucId").tostring %>' Visible="false" /><asp:LinkButton ID="lblRepDaerah" runat="server" Text='<%#Container.DataItem("Daerah").ToString%>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepMukim" runat="server" Text='<%#Container.dataitem("Mukim").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepSek" runat="server" Text='<%#Container.dataitem("Sek").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepJenisLot" runat="server" Text='<%#Container.dataitem("JenisLot").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepNoLot" runat="server" Text='<%#Container.dataitem("NoLot").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepTkhPenilaian" runat="server" Text='<%# Bind("TkhPenilaian","{0:dd-MMM-yyyy}") %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepLuasLot" runat="server" Text='<%#Container.dataitem("LuasLot").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepJenisHartanah" runat="server" Text='<%#Container.dataitem("JenisHartanah").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepAlamat" runat="server" Text='<%#Container.dataitem("Alamat").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepKawasan" runat="server" Text='<%#Container.dataitem("Kawasan").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepPemberi" runat="server" Text='<%#Container.dataitem("Pemberi").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepPenerima" runat="server" Text='<%#Container.dataitem("Penerima").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepBalasan" runat="server" Text='<%#Container.dataitem("Balasan").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                        <td>
                                            <asp:LinkButton ID="lblRepCreateDate" runat="server" Text='<%#Container.dataitem("CreateDate").tostring %>' CommandArgument='<%#Container.dataitem("AucId").tostring %>' CommandName="ViewList" /></td>
                                    </tr>
                                </ItemTemplate>
                            </asp:Repeater>
                        </tbody>
                    </table>

                </td>
            </tr>
            <tr>
                <td>
                    <table class="ResultPanelFooter" width="100%">
                        <tr>
                            <td>
                                <asp:Label ID="lblFootNoOfItem" runat="server" Text="0" />&nbsp; items total</td>
                            <td align="center" valign="middle">
                                <asp:Panel ID="pnlNavigation" runat="server" Style="text-align: center; vertical-align: middle;">
                                    <asp:ImageButton ImageUrl="images/style01/Btn-jump-first.png" ID="btnMoveFirst" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-back.png" ID="btnPrevious" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:TextBox ID="txtPageNo" runat="server" Text="1" Height="12" Width="28" Font-Size="10px" Style="text-align: center; vertical-align: middle;" onkeypress="return isNumberKeyOnly(event)" onpaste="return isNumberKeyOnly(event)" />&nbsp;
                                <asp:Label ID="lblTotalPage" runat="server" Height="20" Font-Size="10px" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-go.png" ID="btnGo" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-foward.png" ID="btnNext" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />&nbsp;
                                <asp:ImageButton ImageUrl="images/style01/Btn-jump-last.png" ID="btnMoveLast" runat="server" Width="28" Height="18" Style="vertical-align: middle;" />
                                    <asp:Label ID="lblMaxPageCount" runat="server" Visible="false" Height="20" Font-Size="10px" Style="vertical-align: middle;" />
                                </asp:Panel>
                            </td>
                            <td align="right">Number of entries per page :
                                <asp:LinkButton ID="lnkFoot10Item" runat="server" Text="10" />&nbsp;<asp:LinkButton ID="lnkFoot25Item" runat="server" Text="25" />&nbsp;<asp:LinkButton ID="lnkFoot100Item" runat="server" Text="100" />&nbsp;<asp:LinkButton ID="lnkFoot150Item" runat="server" Text="150" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>

        <asp:Label ID="lblhidSortType" runat="server" Visible="false" Text=" ORDER BY CreateDate DESC, Daerah DESC, Mukim DESC, Sek DESC, JenisLot DESC, NoLot DESC, TkhPenilaian DESC, LuasLot DESC, JenisHartanah DESC, Alamat DESC, Kawasan DESC, Pemberi DESC, Penerima DESC, Balasan DESC" />
    </div>
</asp:Content>


